﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoMapper;
using HROReporting.Services.ViewModels;
using HROReporting.Model.SchoolLocaties;

namespace HROReporting.Services.Mapping
{
    public static class SchoolLocatieMapper
    {
        public static IEnumerable<SchoolLocatieView> ConvertToSchoolLocatieIndexView(this IEnumerable<SchoolLocatie> locaties)
        {
            return Mapper.Map<IEnumerable<SchoolLocatie>, IEnumerable<SchoolLocatieView>>(locaties);
        }

        public static SchoolLocatieView ConvertToSchoolLocatieView(this SchoolLocatie locatie)
        {
            return Mapper.Map<SchoolLocatie, SchoolLocatieView>(locatie);
        }
    }
}
